public class SOOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
SOOutputStream(java.lang.String path)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this input stream and releases any system resources associated
with the stream.
|
void |
flush()
Flushes this output stream and forces any buffered output bytes to be
written out.
|
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output
stream.
|
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off
to this output stream.
|
void |
write(int b)
Writes the specified byte to this output stream.
|
public SOOutputStream(java.lang.String path)
path
- Full path to the 'input' file.public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public void write(byte[] b)
write
in class java.io.OutputStream
public void write(byte[] b, int off, int len)
write
in class java.io.OutputStream
b
- The data.off
- The start offset in the data.len
- The number of bytes to write.public void write(int b)
write
in class java.io.OutputStream
b
- The byte